package com.atguigu.bigdata.scala.chapter02

import java.io.PrintWriter
import scala.io.{BufferedSource, Source}

object Scala07_Out {

    def main(args: Array[String]): Unit = {

        // TODO Out
        // Scala中输出其实使用的是Java中的输出
        val out = new PrintWriter(new java.io.File("data/test.txt"))
        out.println("zhangsan")
        out.println("lisi")
        out.flush()
        out.close()
    }
}
